package com.stedu.mapper;

import com.stedu.bean.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//@SuppressWarnings({"ALL", "MybatisXMapperMethodInspection"})
public interface AdminMapper {
    //根据用户名和密码查询
    Admin selectByUsername(@Param("username") String username,@Param("user") String user);

    //注册用户
    Admin selectUsername(String username);
    int insert(Admin a);
    //根据id删除
    int delete( int id);
    //根据id修改
    int update(Admin a);
    //根据id查询
    Admin selectById(int id);
    //分页查询
    List<Admin> selectPage(String name);

    List<Map<String ,Object>>  selectTop5DnameAdCount();
    int  selectuserNumber();
}
